//
//  NSString+Hash.h
//
//  Created by Tom Corwine on 5/30/12..
//

#import <Foundation/Foundation.h>

@interface NSString (Hash)

@property (readonly) NSString *md5String;



/// 设置无type的sign生成方式
/// @param uid uid
+(NSString *)encodeWithNoType:(NSString *)uid;

/// 根据type生成签名signature
/// @param type type
+(NSString *)encodeWithType:(NSString *)type;

/** *  加密url

   dataDic  要进行签名的字典

   character  随机16位数

*/

+(NSString*)encoingWithDic:(NSMutableDictionary*)dataDic;
//@property (readonly) NSString *sha1String;
//@property (readonly) NSString *sha256String;
//@property (readonly) NSString *sha512String;
/** MD5加强*/
//@property (readonly) NSString *whMd5String;

//
//- (NSString *)hmacSHA1StringWithKey:(NSString *)key;
//- (NSString *)hmacSHA256StringWithKey:(NSString *)key;
//- (NSString *)hmacSHA512StringWithKey:(NSString *)key;

@end
